package com.weitu.contractor.entity;

import com.weitu.permission.department.entity.Department;
import com.weitu.permission.user.entity.User;

import java.io.Serializable;

/** 
 * 承包商管理_承包商信息表 HSE_CM_CONTRACTORINFO
 * @author LiMeng
 * date 2017/04/06 17:03
 */
public class ContractorInfo implements Serializable {
    //串行版本ID
    private static final long serialVersionUID = -1032965136948620858L;

    // 主键
    private String id;

    // 标识
    private String code;

    // 备注
    private String remarks;

    // 删除标记 0未删除 1 已删除  默认：((0))
    private Integer delState;

    // 添加人
    private String addUserId;

    // 添加人部门Id
    private String addDeptId;

    // 添加时间
    private String addTime;

    // 修改人部门Id
    private String updateDeptId;

    // 最后修改人
    private String updateUserId;

    // 最后修改时间
    private String updateTime;

    // 承包商全名
    private String fullName;

    // 承包商名称
    private String name;

    // 英文名称
    private String englishName;

    // 承包商级别
    private Integer level;

    // 工商证号
    private String businessLicense;

    // 税号
    private String faxId;

    // 全国组织机构id
    private String sunId;

    // 地址
    private String address;

    // 邮政编号
    private String postCode;

    // 注册地址
    private String registerAddress;

    // 电话号码
    private String telephone;

    // 语种
    private String language;

    // 国家
    private String countryId;

    // 城市
    private String cityId;

    // 区县
    private String countyId;

    // 启用状态（0未启用，1已启用）  默认：((1))
    private Integer useState;

    // 省市
    private String provinceId;

    //国家名称
    private String countryName;

    //省市名称
    private String provinceName;

    //城市名称
    private String cityName;

    //区县名称
    private String countyName;

    //登记人
    private User addUser;

    //登记部门
    private Department addDept;

    //修改人
    private User updateUser;

    //修改部门
    private Department updateDept;


    /** 
     * 获取 主键 HSE_CM_CONTRACTORINFO.id
     * @return 主键
     */
    public String getId() {
        return id;
    }

    /** 
     * 设置 主键 HSE_CM_CONTRACTORINFO.id
     * @param id 主键
     */
    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    /** 
     * 获取 标识 HSE_CM_CONTRACTORINFO.code
     * @return 标识
     */
    public String getCode() {
        return code;
    }

    /** 
     * 设置 标识 HSE_CM_CONTRACTORINFO.code
     * @param code 标识
     */
    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    /** 
     * 获取 备注 HSE_CM_CONTRACTORINFO.remarks
     * @return 备注
     */
    public String getRemarks() {
        return remarks;
    }

    /** 
     * 设置 备注 HSE_CM_CONTRACTORINFO.remarks
     * @param remarks 备注
     */
    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    /** 
     * 获取 删除标记 0未删除 1 已删除 HSE_CM_CONTRACTORINFO.delState
     * @return 删除标记 0未删除 1 已删除
     */
    public Integer getDelState() {
        return delState;
    }

    /** 
     * 设置 删除标记 0未删除 1 已删除 HSE_CM_CONTRACTORINFO.delState
     * @param delState 删除标记 0未删除 1 已删除
     */
    public void setDelState(Integer delState) {
        this.delState = delState;
    }

    /** 
     * 获取 添加人 HSE_CM_CONTRACTORINFO.addUserId
     * @return 添加人
     */
    public String getAddUserId() {
        return addUserId;
    }

    /** 
     * 设置 添加人 HSE_CM_CONTRACTORINFO.addUserId
     * @param addUserId 添加人
     */
    public void setAddUserId(String addUserId) {
        this.addUserId = addUserId == null ? null : addUserId.trim();
    }

    /** 
     * 获取 添加人部门Id HSE_CM_CONTRACTORINFO.addDeptId
     * @return 添加人部门Id
     */
    public String getAddDeptId() {
        return addDeptId;
    }

    /** 
     * 设置 添加人部门Id HSE_CM_CONTRACTORINFO.addDeptId
     * @param addDeptId 添加人部门Id
     */
    public void setAddDeptId(String addDeptId) {
        this.addDeptId = addDeptId == null ? null : addDeptId.trim();
    }

    /** 
     * 获取 添加时间 HSE_CM_CONTRACTORINFO.addTime
     * @return 添加时间
     */
    public String getAddTime() {
        return addTime;
    }

    /** 
     * 设置 添加时间 HSE_CM_CONTRACTORINFO.addTime
     * @param addTime 添加时间
     */
    public void setAddTime(String addTime) {
        this.addTime = addTime == null ? null : addTime.trim();
    }

    /** 
     * 获取 修改人部门Id HSE_CM_CONTRACTORINFO.updateDeptId
     * @return 修改人部门Id
     */
    public String getUpdateDeptId() {
        return updateDeptId;
    }

    /** 
     * 设置 修改人部门Id HSE_CM_CONTRACTORINFO.updateDeptId
     * @param updateDeptId 修改人部门Id
     */
    public void setUpdateDeptId(String updateDeptId) {
        this.updateDeptId = updateDeptId == null ? null : updateDeptId.trim();
    }

    /** 
     * 获取 最后修改人 HSE_CM_CONTRACTORINFO.updateUserId
     * @return 最后修改人
     */
    public String getUpdateUserId() {
        return updateUserId;
    }

    /** 
     * 设置 最后修改人 HSE_CM_CONTRACTORINFO.updateUserId
     * @param updateUserId 最后修改人
     */
    public void setUpdateUserId(String updateUserId) {
        this.updateUserId = updateUserId == null ? null : updateUserId.trim();
    }

    /** 
     * 获取 最后修改时间 HSE_CM_CONTRACTORINFO.updateTime
     * @return 最后修改时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /** 
     * 设置 最后修改时间 HSE_CM_CONTRACTORINFO.updateTime
     * @param updateTime 最后修改时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }

    /** 
     * 获取 承包商全名 HSE_CM_CONTRACTORINFO.fullName
     * @return 承包商全名
     */
    public String getFullName() {
        return fullName;
    }

    /** 
     * 设置 承包商全名 HSE_CM_CONTRACTORINFO.fullName
     * @param fullName 承包商全名
     */
    public void setFullName(String fullName) {
        this.fullName = fullName == null ? null : fullName.trim();
    }

    /** 
     * 获取 承包商名称 HSE_CM_CONTRACTORINFO.name
     * @return 承包商名称
     */
    public String getName() {
        return name;
    }

    /** 
     * 设置 承包商名称 HSE_CM_CONTRACTORINFO.name
     * @param name 承包商名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /** 
     * 获取 英文名称 HSE_CM_CONTRACTORINFO.englishName
     * @return 英文名称
     */
    public String getEnglishName() {
        return englishName;
    }

    /** 
     * 设置 英文名称 HSE_CM_CONTRACTORINFO.englishName
     * @param englishName 英文名称
     */
    public void setEnglishName(String englishName) {
        this.englishName = englishName == null ? null : englishName.trim();
    }

    /** 
     * 获取 承包商级别 HSE_CM_CONTRACTORINFO.level
     * @return 承包商级别
     */
    public Integer getLevel() {
        return level;
    }

    /** 
     * 设置 承包商级别 HSE_CM_CONTRACTORINFO.level
     * @param level 承包商级别
     */
    public void setLevel(Integer level) {
        this.level = level;
    }

    /** 
     * 获取 工商证号 HSE_CM_CONTRACTORINFO.businessLicense
     * @return 工商证号
     */
    public String getBusinessLicense() {
        return businessLicense;
    }

    /** 
     * 设置 工商证号 HSE_CM_CONTRACTORINFO.businessLicense
     * @param businessLicense 工商证号
     */
    public void setBusinessLicense(String businessLicense) {
        this.businessLicense = businessLicense == null ? null : businessLicense.trim();
    }

    /** 
     * 获取 税号 HSE_CM_CONTRACTORINFO.faxId
     * @return 税号
     */
    public String getFaxId() {
        return faxId;
    }

    /** 
     * 设置 税号 HSE_CM_CONTRACTORINFO.faxId
     * @param faxId 税号
     */
    public void setFaxId(String faxId) {
        this.faxId = faxId == null ? null : faxId.trim();
    }

    /** 
     * 获取 全国组织机构id HSE_CM_CONTRACTORINFO.sunId
     * @return 全国组织机构id
     */
    public String getSunId() {
        return sunId;
    }

    /** 
     * 设置 全国组织机构id HSE_CM_CONTRACTORINFO.sunId
     * @param sunId 全国组织机构id
     */
    public void setSunId(String sunId) {
        this.sunId = sunId == null ? null : sunId.trim();
    }

    /** 
     * 获取 地址 HSE_CM_CONTRACTORINFO.address
     * @return 地址
     */
    public String getAddress() {
        return address;
    }

    /** 
     * 设置 地址 HSE_CM_CONTRACTORINFO.address
     * @param address 地址
     */
    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    /** 
     * 获取 邮政编号 HSE_CM_CONTRACTORINFO.postCode
     * @return 邮政编号
     */
    public String getPostCode() {
        return postCode;
    }

    /** 
     * 设置 邮政编号 HSE_CM_CONTRACTORINFO.postCode
     * @param postCode 邮政编号
     */
    public void setPostCode(String postCode) {
        this.postCode = postCode == null ? null : postCode.trim();
    }

    /** 
     * 获取 注册地址 HSE_CM_CONTRACTORINFO.registerAddress
     * @return 注册地址
     */
    public String getRegisterAddress() {
        return registerAddress;
    }

    /** 
     * 设置 注册地址 HSE_CM_CONTRACTORINFO.registerAddress
     * @param registerAddress 注册地址
     */
    public void setRegisterAddress(String registerAddress) {
        this.registerAddress = registerAddress == null ? null : registerAddress.trim();
    }

    /** 
     * 获取 电话号码 HSE_CM_CONTRACTORINFO.telephone
     * @return 电话号码
     */
    public String getTelephone() {
        return telephone;
    }

    /** 
     * 设置 电话号码 HSE_CM_CONTRACTORINFO.telephone
     * @param telephone 电话号码
     */
    public void setTelephone(String telephone) {
        this.telephone = telephone == null ? null : telephone.trim();
    }

    /** 
     * 获取 语种 HSE_CM_CONTRACTORINFO.language
     * @return 语种
     */
    public String getLanguage() {
        return language;
    }

    /** 
     * 设置 语种 HSE_CM_CONTRACTORINFO.language
     * @param language 语种
     */
    public void setLanguage(String language) {
        this.language = language == null ? null : language.trim();
    }

    /** 
     * 获取 国家 HSE_CM_CONTRACTORINFO.countryId
     * @return 国家
     */
    public String getCountryId() {
        return countryId;
    }

    /** 
     * 设置 国家 HSE_CM_CONTRACTORINFO.countryId
     * @param countryId 国家
     */
    public void setCountryId(String countryId) {
        this.countryId = countryId == null ? null : countryId.trim();
    }

    /** 
     * 获取 城市 HSE_CM_CONTRACTORINFO.cityId
     * @return 城市
     */
    public String getCityId() {
        return cityId;
    }

    /** 
     * 设置 城市 HSE_CM_CONTRACTORINFO.cityId
     * @param cityId 城市
     */
    public void setCityId(String cityId) {
        this.cityId = cityId == null ? null : cityId.trim();
    }

    /** 
     * 获取 区县 HSE_CM_CONTRACTORINFO.countyId
     * @return 区县
     */
    public String getCountyId() {
        return countyId;
    }

    /** 
     * 设置 区县 HSE_CM_CONTRACTORINFO.countyId
     * @param countyId 区县
     */
    public void setCountyId(String countyId) {
        this.countyId = countyId == null ? null : countyId.trim();
    }

    /** 
     * 获取 启用状态（0未启用，1已启用） HSE_CM_CONTRACTORINFO.useState
     * @return 启用状态（0未启用，1已启用）
     */
    public Integer getUseState() {
        return useState;
    }

    /** 
     * 设置 启用状态（0未启用，1已启用） HSE_CM_CONTRACTORINFO.useState
     * @param useState 启用状态（0未启用，1已启用）
     */
    public void setUseState(Integer useState) {
        this.useState = useState;
    }

    /** 
     * 获取 省市 HSE_CM_CONTRACTORINFO.provinceId
     * @return 省市
     */
    public String getProvinceId() {
        return provinceId;
    }

    /** 
     * 设置 省市 HSE_CM_CONTRACTORINFO.provinceId
     * @param provinceId 省市
     */
    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId == null ? null : provinceId.trim();
    }

    public String getCountryName() {
        return countryName;
    }

    public void setCountryName(String countryName) {
        this.countryName = countryName;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCountyName() {
        return countyName;
    }

    public void setCountyName(String countyName) {
        this.countyName = countyName;
    }

    public User getAddUser() {
        return addUser;
    }

    public void setAddUser(User addUser) {
        this.addUser = addUser;
    }

    public Department getAddDept() {
        return addDept;
    }

    public void setAddDept(Department addDept) {
        this.addDept = addDept;
    }

    public User getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(User updateUser) {
        this.updateUser = updateUser;
    }

    public Department getUpdateDept() {
        return updateDept;
    }

    public void setUpdateDept(Department updateDept) {
        this.updateDept = updateDept;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("ContractorInfo{");
        sb.append("id='").append(id).append('\'');
        sb.append(", code='").append(code).append('\'');
        sb.append(", remarks='").append(remarks).append('\'');
        sb.append(", delState=").append(delState);
        sb.append(", addUserId='").append(addUserId).append('\'');
        sb.append(", addDeptId='").append(addDeptId).append('\'');
        sb.append(", addTime='").append(addTime).append('\'');
        sb.append(", updateDeptId='").append(updateDeptId).append('\'');
        sb.append(", updateUserId='").append(updateUserId).append('\'');
        sb.append(", updateTime='").append(updateTime).append('\'');
        sb.append(", fullName='").append(fullName).append('\'');
        sb.append(", name='").append(name).append('\'');
        sb.append(", englishName='").append(englishName).append('\'');
        sb.append(", level=").append(level);
        sb.append(", businessLicense='").append(businessLicense).append('\'');
        sb.append(", faxId='").append(faxId).append('\'');
        sb.append(", sunId='").append(sunId).append('\'');
        sb.append(", address='").append(address).append('\'');
        sb.append(", postCode='").append(postCode).append('\'');
        sb.append(", registerAddress='").append(registerAddress).append('\'');
        sb.append(", telephone='").append(telephone).append('\'');
        sb.append(", language='").append(language).append('\'');
        sb.append(", countryId='").append(countryId).append('\'');
        sb.append(", cityId='").append(cityId).append('\'');
        sb.append(", countyId='").append(countyId).append('\'');
        sb.append(", useState=").append(useState);
        sb.append(", provinceId='").append(provinceId).append('\'');
        sb.append(", countryName='").append(countryName).append('\'');
        sb.append(", provinceName='").append(provinceName).append('\'');
        sb.append(", cityName='").append(cityName).append('\'');
        sb.append(", countyName='").append(countyName).append('\'');
        sb.append(", addUser=").append(addUser);
        sb.append(", addDept=").append(addDept);
        sb.append(", updateUser=").append(updateUser);
        sb.append(", updateDept=").append(updateDept);
        sb.append('}');
        return sb.toString();
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ContractorInfo that = (ContractorInfo) o;

        if (id != null ? !id.equals(that.id) : that.id != null) return false;
        if (code != null ? !code.equals(that.code) : that.code != null) return false;
        if (remarks != null ? !remarks.equals(that.remarks) : that.remarks != null) return false;
        if (delState != null ? !delState.equals(that.delState) : that.delState != null) return false;
        if (addUserId != null ? !addUserId.equals(that.addUserId) : that.addUserId != null) return false;
        if (addDeptId != null ? !addDeptId.equals(that.addDeptId) : that.addDeptId != null) return false;
        if (addTime != null ? !addTime.equals(that.addTime) : that.addTime != null) return false;
        if (updateDeptId != null ? !updateDeptId.equals(that.updateDeptId) : that.updateDeptId != null) return false;
        if (updateUserId != null ? !updateUserId.equals(that.updateUserId) : that.updateUserId != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        if (fullName != null ? !fullName.equals(that.fullName) : that.fullName != null) return false;
        if (name != null ? !name.equals(that.name) : that.name != null) return false;
        if (englishName != null ? !englishName.equals(that.englishName) : that.englishName != null) return false;
        if (level != null ? !level.equals(that.level) : that.level != null) return false;
        if (businessLicense != null ? !businessLicense.equals(that.businessLicense) : that.businessLicense != null)
            return false;
        if (faxId != null ? !faxId.equals(that.faxId) : that.faxId != null) return false;
        if (sunId != null ? !sunId.equals(that.sunId) : that.sunId != null) return false;
        if (address != null ? !address.equals(that.address) : that.address != null) return false;
        if (postCode != null ? !postCode.equals(that.postCode) : that.postCode != null) return false;
        if (registerAddress != null ? !registerAddress.equals(that.registerAddress) : that.registerAddress != null)
            return false;
        if (telephone != null ? !telephone.equals(that.telephone) : that.telephone != null) return false;
        if (language != null ? !language.equals(that.language) : that.language != null) return false;
        if (countryId != null ? !countryId.equals(that.countryId) : that.countryId != null) return false;
        if (cityId != null ? !cityId.equals(that.cityId) : that.cityId != null) return false;
        if (countyId != null ? !countyId.equals(that.countyId) : that.countyId != null) return false;
        if (useState != null ? !useState.equals(that.useState) : that.useState != null) return false;
        if (provinceId != null ? !provinceId.equals(that.provinceId) : that.provinceId != null) return false;
        if (countryName != null ? !countryName.equals(that.countryName) : that.countryName != null) return false;
        if (provinceName != null ? !provinceName.equals(that.provinceName) : that.provinceName != null) return false;
        if (cityName != null ? !cityName.equals(that.cityName) : that.cityName != null) return false;
        if (countyName != null ? !countyName.equals(that.countyName) : that.countyName != null) return false;
        if (addUser != null ? !addUser.equals(that.addUser) : that.addUser != null) return false;
        if (addDept != null ? !addDept.equals(that.addDept) : that.addDept != null) return false;
        if (updateUser != null ? !updateUser.equals(that.updateUser) : that.updateUser != null) return false;
        return updateDept != null ? updateDept.equals(that.updateDept) : that.updateDept == null;
    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (remarks != null ? remarks.hashCode() : 0);
        result = 31 * result + (delState != null ? delState.hashCode() : 0);
        result = 31 * result + (addUserId != null ? addUserId.hashCode() : 0);
        result = 31 * result + (addDeptId != null ? addDeptId.hashCode() : 0);
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (updateDeptId != null ? updateDeptId.hashCode() : 0);
        result = 31 * result + (updateUserId != null ? updateUserId.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (fullName != null ? fullName.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (englishName != null ? englishName.hashCode() : 0);
        result = 31 * result + (level != null ? level.hashCode() : 0);
        result = 31 * result + (businessLicense != null ? businessLicense.hashCode() : 0);
        result = 31 * result + (faxId != null ? faxId.hashCode() : 0);
        result = 31 * result + (sunId != null ? sunId.hashCode() : 0);
        result = 31 * result + (address != null ? address.hashCode() : 0);
        result = 31 * result + (postCode != null ? postCode.hashCode() : 0);
        result = 31 * result + (registerAddress != null ? registerAddress.hashCode() : 0);
        result = 31 * result + (telephone != null ? telephone.hashCode() : 0);
        result = 31 * result + (language != null ? language.hashCode() : 0);
        result = 31 * result + (countryId != null ? countryId.hashCode() : 0);
        result = 31 * result + (cityId != null ? cityId.hashCode() : 0);
        result = 31 * result + (countyId != null ? countyId.hashCode() : 0);
        result = 31 * result + (useState != null ? useState.hashCode() : 0);
        result = 31 * result + (provinceId != null ? provinceId.hashCode() : 0);
        result = 31 * result + (countryName != null ? countryName.hashCode() : 0);
        result = 31 * result + (provinceName != null ? provinceName.hashCode() : 0);
        result = 31 * result + (cityName != null ? cityName.hashCode() : 0);
        result = 31 * result + (countyName != null ? countyName.hashCode() : 0);
        result = 31 * result + (addUser != null ? addUser.hashCode() : 0);
        result = 31 * result + (addDept != null ? addDept.hashCode() : 0);
        result = 31 * result + (updateUser != null ? updateUser.hashCode() : 0);
        result = 31 * result + (updateDept != null ? updateDept.hashCode() : 0);
        return result;
    }
}